/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package resource;

import java.io.Serializable;

/**
 *
 * @author lallarN
 */
public class TourItem implements Serializable{
    private float rating;
    private String name;
    private String id;
    
    public TourItem(String id, String name, float rating){
        this.rating = rating;
        this.name = name;
        this.id = id;
    }

    public float getRating() {
        return rating;
    }

    public void setRating(int rating) {
        this.rating = rating;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    @Override
    public boolean equals(Object o) {
        if (o instanceof TourItem){
            TourItem item = (TourItem) o;
            
            return item.getId().equals(id);
        } else {
            return super.equals(o);
        }
    }
    
    
}
